package com.sky.context;

public class BaseContext {

    private static final ThreadLocal<Long> THREADLOCAL = new ThreadLocal<>();

    public static void setCurrentId(Long id) {
        THREADLOCAL.set(id);
    }

    public static Long getCurrentId() {
        return THREADLOCAL.get();
    }

    public static void removeCurrentId() {
        THREADLOCAL.remove();
    }

}
